package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Movement;
import com.tanhua.model.vo.PageResult;

import java.util.List;

public interface MovementApi {
    String publish(Movement movement);

    PageResult findMove(List<Long> userIds, Integer page, Integer pagesize);

    List<Movement> randomMovements(Integer counts);

    List<Movement> findMovementsByPids(List<Long> pids);

    Movement movementDetails(String id);

    PageResult findByUserId(Long uid, Integer state, Integer page, Integer pagesize);

    void updateState(String movementId, int state);
}
